#ifndef __MEM_CHK_DB_H_
#define __MEM_CHK_DB_H_

typedef struct _MemChkInfo{
	void* ptr;
	unsigned int alloc_len;
	char* backtrace;
} MemChkInfo;

typedef struct _MemChkListNode{
	MemChkInfo info;
	struct _MemChkListNode* next;
	struct _MemChkListNode* pre;
}MemChkListNode;

void add_mem_chk_node(MemChkInfo* inf);
void rm_mem_chk_node(void* ptr);
void print_mem_leak(bool is_clear_after_prit);

#endif